package cn.edu.scau.cmi.liujiaming.chapter06;

class  类人猿 {
	int i=12,j=10;
	   void crySpeak(String s) {
	       System.out.println(s);
	   }
	   void com() {
		   System.out.println(i+j);
	   }
	}
	class PeoplePlus extends 类人猿 {
		int i=15;
	   void computer(int a,int b) { 
	      int c=a*b;
	      System.out.println(c); 
	   }
	   void crySpeak(String s) {
	      System.out.println("***"+s+"***"); 
	   }  
	}
	public class Example6_7 {
	   public static void main(String args[]) {
	      类人猿 monkey=new PeoplePlus();
	      monkey.com();
	      monkey.crySpeak("I love this game");
	      PeoplePlus PeoplePlus=(PeoplePlus)monkey;
	      PeoplePlus.computer(10,10);
	   }
	}